<?php
/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Group
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 * @version    $Id: Membership.php 7244 2010-09-01 01:49:53Z john $
 * @author     John
 */

/**
 * @category   Application_Extensions
 * @package    Group
 * @copyright  Copyright 2006-2010 Webligo Developments
 * @license    http://www.socialengine.net/license/
 */
class Group_Model_DbTable_Membership extends Core_Model_DbTable_Membership {
	protected $_type = 'group';
	
	// Configuration
	

	/**
	 * Does membership require approval of the resource?
	 *
	 * @param Core_Model_Item_Abstract $resource
	 * @return bool
	 */
	public function isResourceApprovalRequired(Core_Model_Item_Abstract $resource) {
		return $resource->approval;
	}
}